package com.hdoit.kylin.logical.studentManager.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.kylin.logical.studentManager.dao.IWritePaperDao;
import com.hdoit.kylin.logical.studentManager.model.WritePaper;
import com.hdoit.kylin.logical.studentManager.service.IWritePaperService;
import com.hdoit.kylin.logical.viewmodel.postgraduate.WritePaperSearch;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      anshengqiang
 * @email       
 * @createtime  2017年08月01日 19:43:35
 * @comment
 */
@Component
public class WritePaperServiceImpl extends SuperService<WritePaper> implements IWritePaperService{

	private IWritePaperDao writePaperDao;
	
	public IWritePaperDao getIWritePaperDao(){
		return writePaperDao;
	}
	
	@Resource
	public void setIMidCheckDao(IWritePaperDao writePaperDao) {
		this.writePaperDao = writePaperDao;
	}
	@Override
	public List<WritePaper> queryList(WritePaperSearch search, PagerModel pagerModel) {
		return writePaperDao.queryList(search, pagerModel);
	}

	@Override
	public int queryCount(WritePaperSearch search) {
		return writePaperDao.queryCount(search);
	}
	
}